# -*- coding:utf-8 -*-


import tensorflow as tf
with tf.Session() as sess:
    new_saver = tf.train.import_meta_graph('D:/workspace/python/pythonWorkSpace/ner-lstm/data/model/model_max.ckpt.meta')
    new_saver.restore(sess, "D:/workspace/python/pythonWorkSpace/ner-lstm/data/model/model_max.ckpt")
    graph = tf.get_default_graph()
    print(graph.get_tensor)
    # x = graph.get_operation_by_name('x').outputs[0]
    # y = tf.get_collection("pred_network")[0]
    # print("109的预测值是:", sess.run(y, feed_dict={x: [[109]]}))